# 九九乘法表


# ---------------------
# for i in range(1, 10):
#     for j in range(1, i + 1):
#         print(str(j), '*', str(i), '=', i * j, end='\t')
#     print()

# i = 1
# j = 1
# while i < 10:
#     while j < i + 1:
#         print(str(j), '*', str(i), '=', i * j, end='\t')
#         j += 1
#     print()
#     i += 1
#     j = 1

# 1 * 1 = 1
# 1* j = 2 j* i = 4
# 1* i = 3 2 * 3 = 6 3 * 3 = 9

i = 1
j = 1
while i < 12: # 外层循环控制行数
    while j < i + 1: # 内层循环控制每行打印的内容
        print(str(i) + '*' + str(j) + '=' + str(i * j), end='\t')
        j += 1
    i += 1
    j = 1
    print()
